<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib prefix="display" uri="http://displaytag.sf.net" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<html>
<head>
  <title>停车场信息列表</title>
</head>
<body>

<div class="row">
  <div class="col-lg-12">
    <!-- BEGIN BREADCRUMB -->
    <div class="breadcrumbs fixed">
      <ul class="breadcrumb">
        <li>
          <a href="/backend/dashboard">首页</a>
        </li>
        <li class="active">停车场信息</li>
      </ul>
    </div>
    <!-- /#ek-layout-button -->

  </div>
  <!-- /.col-lg-12 -->
</div>
<!-- /.row -->
<div class="park_header">
<div class="row">
  <div class="col-lg-12">
    <!-- START YOUR CONTENT HERE -->
    <div class="portlet">
      <div class="portlet-heading dark">
        <div class="portlet-title">
          <h4>停车场信息列表
            <small class="text-white"></small>
          </h4>
        </div>
      </div>
      <div class="dataTables_wrapper form-inline no-footer">
        <div class="area_inline">
          <form method="post" action="parkoverview" class="col-sm-8">
            <div class="row">
              <div class="col-sm-12">
              <div>
                <div>
                  <div class="input-group">
                    <input type="text" name="name" value="${defaultPaginatedList.queryCondition.name}" class="form-control input-sm" placeholder="请输入停车场名称" aria-controls="SampleDT">
                        <span class="input-group-btn">
                          <button class="btn btn-info btn-sm" type="submit">
                            <i class="fa fa-search"></i>
                            查询
                          </button>
                        </span>
                  </div>
              </div>
              </div>
              </div>
            </div>
          </form>
          <button class="btn btn-info btn-sm pull-right" type="button" style="margin-top: 12px;" onclick="location.href='/backend/parkform'">+添加停车场</button>
        </div>
        <div style="clear: both;"></div>
        <display:table list="${defaultPaginatedList}" id="park" class="datatable table table-hover table-striped table-bordered tc-table" requestURI="parkoverview" >
          <display:column title="注册码" value="${park.registrationCode}"/>
          <display:column title="名称" value="${park.name}"/>
          <display:column title="城市" value="${park.city}"/>
          <display:column title="详细地址" value="${park.address}"/>
          <display:column title="车位数" value="${park.stallNumber}"/>
          <display:column title="收费规则" value="${park.chargeRule}"/>
          <display:column title="状态" value="${park.status}"/>
          <display:column title="注册时间" value="${park.registrationTime}"/>
          <display:column title="操作">
            <div class="btn-group btn-group-xs ">
              <a href="/backend/parkform?guid=${park.guid}" title="修改" class="btn btn-inverse">
                <i class="fa fa-pencil icon-only"></i>
              </a>
              <a href="/backend/parkdetail?guid=${park.guid}" title="查看" class="btn btn-inverse"><i class="fa fa-eye"></i></a>
              <c:if test="${park.active}">
                <a href="/backend/lockpark?guid=${park.guid}&lock=false&name=${defaultPaginatedList.queryCondition.name}&page=${defaultPaginatedList.queryCondition.page}" title="冻结" class="btn btn-danger">
                  <i class="fa fa-lock"></i>
                </a>
              </c:if>
              <c:if test="${!park.active}">
              <a href="/backend/lockpark?guid=${park.guid}&lock=true&name=${defaultPaginatedList.queryCondition.name}&page=${defaultPaginatedList.queryCondition.page}" title="解锁" class="btn btn-danger">
                <i class="fa fa-unlock"></i>
              </a>
            </c:if>
            </div>
          </display:column>
        </display:table>
      </div>
    </div>
  </div>
</div>
</div>
</body>
</html>
